﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace KL.Store.Core.Domain
{
    public class Address
    {
        public virtual int UserId { get; set; }
        public virtual short AddressId { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Kısa Ad")]
        public virtual string AddressName { get; set; }

        [Display(Name = "Ad Soyad / Firma")]
        public virtual string Name { get; set; }

        [Display(Name = "Vergi Dairesi")]
        public virtual string TaxOffice { get; set; }

        [Display(Name = "Vergi No / TCKN")]
        public virtual string TaxNo { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Telefon")]
        public virtual string Phone { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Adres")]
        public virtual string Address1 { get; set; }

        public virtual string Address2 { get; set; }

        [Display(Name = "İlçe")]
        public virtual string County { get; set; }

        [Display(Name = "Posta Kodu")]
        public virtual string PostalCode { get; set; }

        [Display(Name = "Ülke")]
        public virtual short Country { get; set; }
        public virtual string CountryName { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "İl")]
        public virtual short City { get; set; }

        public virtual string CityName { get; set; }

        public virtual string CreateDate { get; set; }
        public virtual int CreateUser { get; set; }
        public virtual string UpdateDate { get; set; }
        public virtual int UpdateUser { get; set; }
    }

    public class AddressDDL
    {
        public virtual short AddressId { get; set; }
        public virtual string AddressName { get; set; }
    }

    public class OrderAddress
    {
        public int OrderType { get; set; }
        public int OrderId { get; set; }
        public string AddressType { get; set; }
        public string Name { get; set; }
        public string TaxOffice { get; set; }
        public string TaxNo { get; set; }
        public string Address1 { get; set; }
        public string Address2 { get; set; }
        public string County { get; set; }
        public string PostalCode { get; set; }
        public int Country { get; set; }
        public int City { get; set; }
        public DateTime CreateDate { get; set; }
        public int CreateUser { get; set; }
        public DateTime UpdateTime { get; set; }
        public int UpdateUser { get; set; }
        public string Phone { get; set; }
    }

}
